﻿<div class="modal-header">
    <h3 class="modal-title">{{modal.title}}</h3>
</div>
<div class="modal-body">
    <table style="margin: 0 auto; width: 500px;">
        <tr>
            <td class="text-right">市级：</td>
            <td style="padding: 2px 0;">
                <label>{{modal.city_name}}</label>
            </td>
        </tr>
        <tr>
            <td class="text-right">县级：</td>
            <td style="padding: 2px 0;">
                <label>{{modal.county_name}}</label>
            </td>
        </tr>
        <tr>
            <td class="text-right">水利站：</td>
            <td style="padding: 2px 0;">
                <div class="input-group" style="width: 100%;">
                    <input type="text" ng-model="modal.station.name" class="form-control" typeahead-on-select="modal.station.selecting($item)"
                           typeahead-loading="loadingLocations" typeahead="_this for _this in modal.station.query_names($viewValue)"/>
                    <i ng-show="loadingLocations" class="input-group-addon glyphicon glyphicon-refresh"></i>
                </div>
            </td>
        </tr>
        <tr>
            <td class="text-right" style="width: 71px;">验收报告：</td>
            <td style="padding: 2px 0;">
                <input id="acceptance_report" name="acceptance_report" type="file" class="file" data-show-preview="false" sing-upload/>
            </td>
        </tr>
        <tr>
            <td class="text-right">申报资料：</td>
            <td style="padding: 2px 0;">
                <input id="acceptance_data" name="acceptance_data" type="file" class="file" data-show-preview="false" sing-upload/>
            </td>
        </tr>
        <tr>
            <td class="text-right">验收卡：</td>
            <td style="padding: 2px 0;">
                <input id="acceptance_card" name="acceptance_card" type="file" class="file" data-show-preview="false" sing-upload/>
            </td>
        </tr>
        <tr>
            <td class="text-right">备注：</td>
            <td style="padding: 2px 0;">
                <textarea class="form-control" style="max-width: 429px" ng-maxlength="120" ng-model="modal.remark"></textarea>
            </td>
        </tr>
        <tr>
            <td colspan="2" style="color: red; text-align: center; font-weight: bolder;">
                {{modal.error}}
            </td>
        </tr>
    </table>
</div>
<div class="modal-footer">
    <button class="btn btn-primary" ng-if="modal.type == 'add'" ng-click="save()">新增</button>
    <button class="btn btn-primary" ng-if="modal.type == 'modify'" ng-click="modify()">修改</button>
    <button class="btn btn-warning" ng-click="cancel()">取消</button>
</div>